const install = (Vue, vm) => {
	let a = {};
	
	/**
	 * 跳转消息链接
	 * 如果是collection类型,则跳转到到统计页面
	 */
	a.routermsgdetail = (id,usermsgid,msgtype) =>{
		console.log(id,msgtype);
		if(msgtype=='COLLECT'){
			vm.$u.route({
				url: 'pages/csmconf/message/msgcollect',
				params:{
					id:id,
					usermsgid:usermsgid
				}
			});	
		}else{
			vm.$u.route({
				url: 'pages/csmconf/message/msgdetail',
				params:{
					id:id,
					usermsgid:usermsgid
				}
			});				
		}
	};
 
	vm.$u.a = a;
}

export default {
	install
}
